﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/MasterPage.Master" AutoEventWireup="true" CodeBehind="EditBusiness.aspx.cs" Inherits="GRC_TPE_WebApp.View.Private.Business.EditBusiness" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <fieldset>
        <legend>Modifier une affaire : </legend>
                <table>
                    <tr>
                        <asp:ValidationSummary ID="editBusinessSummary" runat="server"
                        headerText="Il y a des erreurs sur la page :" />
                    </tr>
                    <tr>
                        <td>Titre : </td>
                        <td>
                            <asp:TextBox ID="editBusinessTitle" runat="server" Width="350px" />

                            <%--Validator--%>
                            <asp:RequiredFieldValidator ID="titleRequired" runat="server"
                            ControlToValidate="editBusinessTitle"
                            ErrorMessage="La titre est requis."> *
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>Etat : </td>
                        <td>
                            <asp:DropDownList ID="DDL_State" runat="server">
                                <asp:ListItem Text="Gagnée" Value="Gagnée" />
                                <asp:ListItem Text="Perdue" Value="Perdue" />
                                <asp:ListItem Text="Prospect" Value="Prospect" />
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>Montant : (ex: 125 ou 2500,5)</td>
                        <td>
                            <asp:TextBox ID="editBusinessAmount" runat="server"/>

                            <%--Validator--%>
                            <asp:RequiredFieldValidator ID="AmountRequired" runat="server"
                            ControlToValidate="editBusinessAmount"
                            ErrorMessage="Le montant est requise"> *
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>Description : </td>
                        <td>
                            <asp:TextBox ID="editBusinessDescription" runat="server" TextMode="MultiLine" Width="350px" Height="100" />

                            <%--Validator--%>
                            <asp:RequiredFieldValidator ID="descriptionRequired" runat="server"
                            ControlToValidate="editBusinessDescription"
                            ErrorMessage="La description est requise"> *
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>Client : </td>
                        <td>
                            <asp:Label ID="editBusinessClient" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td><asp:Button ID="B_SaveBusiness" runat="server" Text="Enregistrer" OnClick="B_SaveBusiness_Click"/></td>
                        <td><asp:Button ID="B_Cancel" runat="server" Text="Annuler" OnClick="B_Cancel_Click" CausesValidation="false"/></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="editBusinessErrorMessage"  runat="server" />
                        </td>
                    </tr>
                </table>
    </fieldset>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="footer" runat="server">
</asp:Content>
